// 保证线程是安全的
use std::future::{ready, Ready};
use std::sync::Mutex;
use rbatis::Rbatis;

use actix_web::{web, HttpResponse, FromRequest, Error, HttpRequest, dev::Payload, HttpMessage};
use log::error;
use crate::base::errors::RBlogError;


pub struct AppState {
    pub health_check_response: String,
    pub visit_count: Mutex<u32>,  // 可变的
    pub pool: Rbatis,
}